﻿using System;
using System.IO;
using System.Text;
using System.Configuration;
using System.Collections.Generic;
using System.Web;



namespace Solution.Utilities
{
    public class Logger
    {
        public static void Write(string errorMessage)
        {
            string path = "d:\\log.txt";//ConfigurationManager.AppSettings["logPath"];

            FileHelper helper = new FileHelper(path);
            helper.AppendLine(errorMessage);
        }

        public static void Write(Exception ex)
        {
            Logger.Write(ex.Message);
        }
    }
}
